package com.fang.security.core.social;

import org.springframework.social.security.SocialAuthenticationFilter;
import org.springframework.social.security.SpringSocialConfigurer;
/*
 * 用于重新定义过滤器链中的拦截方法
 */
public class ImoocSpringSocialConfigurer extends SpringSocialConfigurer{

	private String filterProcessesUrl;
	
	public String getFilterProcessesUrl() {
		return filterProcessesUrl;
	}
	public void setFilterProcessesUrl(String filterProcessesUrl) {
		this.filterProcessesUrl = filterProcessesUrl;
	}

	@Override
	protected <T> T postProcess(T object) {
		SocialAuthenticationFilter filter = (SocialAuthenticationFilter) super.postProcess(object);
		//url
		filter.setFilterProcessesUrl(filterProcessesUrl);
		return (T) filter;
	}

	
}
